package network;

public class OpenGameMsg extends NetworkMsg {

	private static final long serialVersionUID = 1L;
	private String name;
	private int numOfPlayers;
	
	public OpenGameMsg(String name, int numOfPlayers){
		super(Type.CreateNewGame);
		this.name = name;
		this.setNumOfPlayers(numOfPlayers);
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param numOfPlayers the numOfPlayers to set
	 */
	public void setNumOfPlayers(int numOfPlayers) {
		this.numOfPlayers = numOfPlayers;
	}

	/**
	 * @return the numOfPlayers
	 */
	public int getNumOfPlayers() {
		return numOfPlayers;
	}
}
